const columns = [
  {
    title: '序列',
    align: 'center',
    width: 80,
    fixed: 'left',
    customRender: (text, record, index) => {
      return `${index + 1}`
    }
  },
  {
    title: '账户',
    dataIndex: 'account',
    key: 'account'
  },
  {
    title: '创建时间',
    dataIndex: 'createTime',
    key: 'createTime'
  },
  {
    title: '状态',
    dataIndex: 'status',
    key: 'status',
    // customCell: (text, rowIndex) => {
    //   return (
    //     <div>{rowIndex}</div>
    //   )
    // }
    // scopedSlots: { customRender: 'status' }
    customRender: (text) => {
      let _txt = null
      _txt = (text === 1) ? '正常' : '注销'
      return _txt
    }
  },
  {
    title: 'action',
    dataIndex: '',
    key: 'action',
    fixed: 'right',
    align: 'center',
    width: 120,
    scopedSlots: { customRender: 'action' }
  }
]
export default columns
